import 'package:shared_preferences/shared_preferences.dart';



class LocalStorage {
  static SharedPreferences? prefs;

  static initSP() async {
    prefs = await SharedPreferences.getInstance();
  }

  static save(String key, String value) {

    prefs?.setString(key, value);
  }

  static get(String key) {
    // MyLogger().d("get value $prefs");
    return prefs?.get(key);
  }

  static remove(String key) {
    prefs?.remove(key);
  }
}